﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace Medicalsystem.Docare.Common.Configuration
{
    public class InstanceBuilderCollection : ConfigurationElementCollection
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new InstanceBuilderElement();
        }
        protected override object GetElementKey(ConfigurationElement element)
        {
            var instanceBuilderElement = element as InstanceBuilderElement;
            return instanceBuilderElement.Name;
        }
    }
}
